import time

# 日志配置
base_home = 'D:/My_Project/pythonETL/pythonETL/logs/'
log_filename = f'{time.strftime("%Y%m%d-%H",time.localtime(time.time()))}.log'
level = 10

# 元数据存储路径
base_meta_date_path = 'D:/My_Project/pythonETL/pythonETL/datasource/'

# mysql meta_data 配置
meta_data_host = 'localhost'
meta_data_user = 'root'
meta_data_passwd = '123'
meta_data_db = 'metadata'
meta_data_charset = 'utf8'
meta_data_autocommit = False
meta_table = 'file_monitor'
meta_cloumn = """
id int primary key auto_increment COMMENT '主键',
file_name varchar(255) UNIQUE NOT NULL COMMENT '文件名称',
process_lines int COMMENT '文件行数',
process_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP COMMENT '处理时间'
"""


# mysql retail 配置
retail_data_host = 'localhost'
retail_data_user = 'root'
retail_data_passwd = '123'
retail_data_db = 'retail'
retail_data_charset = 'utf8'
retail_data_autocommit = False

